<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item v-for="item in navs" :key="item.path" :to="{path:item.path}">{{ item.meta.title }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script>
export default {
 computed:{
  navs(){
    let routes = this.$route.matched //当前路由信息
    routes[0].path = '/'
<<<<<<< HEAD
    console.log(routes)
=======
    //console.log(routes)
>>>>>>> e558facf022688ce3d835b65714b1b14b7cb08fa
    return routes
  }
 }
}
</script> 

<style lang="less" scoped>
.el-breadcrumb {
  margin-bottom: 10px;
}
</style>
